<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Call function in JavaScript and jQuery, par Mkyong - http://www.mkyong.com</title>
<script type="text/javascript" src="../jquery-1.11.0.js"></script>
</head>
<body>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#msgid1").html("This is Hello World by JQuery 1");
		});
		
		$(function(){
			$("#msgid2").html("This is Hello World by JQuery 2");
		});
	
		window.onload = function() {
			document.getElementById("msgid3").innerHTML = "This is Hello World by Javascript";
		}
	</script>
	
	<h1>Call function in JavaScript and jQuery</h1>
	
	This is Hello World by HTML
	
	<div id="msgid1"></div>
	
	<div id="msgid2"></div>
	
	<div id="msgid3"></div><br>

	<a href="index.jsp">retour</a>
</body>
</html>